const Redis = require('ioredis');
// const { redisClient } = require('../../config/config.default');

// const { path, port, options } = this.app.config.redisClient;
const redis = new Redis(6379, '192.168.31.204', { password: 'root' });
redis.on('error', err => {
  if (err) {
    console.log('Redis 连接错误');
    redis.quit();
  }
});
redis.on('ready', () => {
  console.log('redis连接成功');
});
module.exports.redis = redis;
